//引入utils下DB.js
const mongoose = require('../utils/DB.js');
//创建Schema
let studentSchema = new mongoose.Schema({
    name:String,
    age:Number,
    gender:String,
    score:Number,
    address:String
}) 
//3 创建数据的模型
let studentModel = mongoose.model("studentModel",studentSchema,"students");

//导出
module.exports = studentModel;